//
//  UIButton+Category.m
//  Swift_weiboDemo
//
//  Created by toro宇 on 2017/5/11.
//  Copyright © 2017年 toro宇. All rights reserved.
//

#import "UIButton+Category.h"

@implementation UIButton (Category)

+(instancetype)yy_Button:(NSString *)title fontSize:(CGFloat)fontSize normalColor:(UIColor *)normalColor highLightColor:(UIColor *)highLightColor
{
    UIButton *yyButton = [[self alloc]init];
    [yyButton.titleLabel setFont:[UIFont systemFontOfSize:fontSize]];
    [yyButton setTitle:title forState:UIControlStateNormal];
    [yyButton setTitleColor:normalColor forState:UIControlStateNormal];
    [yyButton setTitleColor:highLightColor forState:UIControlStateHighlighted];
    [yyButton sizeToFit];
    return yyButton;
}

@end 
